package test.selenium.transformer;

import org.testng.IAnnotationTransformer;
import org.testng.annotations.ITestAnnotation;
import test.selenium.retry.MakeRetry;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

public class MyTransformer implements IAnnotationTransformer {

    public void transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) {
         if(annotation.getEnabled()){
            annotation.setRetryAnalyzer(MakeRetry.class);
        }
    }

}
